moth = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
m = int(input("请输入月份："))
if m in moth:
    if m <= 3:
        print("第一季度")
    elif m <= 6:
        print("第二季度")
    elif m <= 9:
        print("第三季度")
    else:
        print("第四季度")
else:
    print("输入错误，请重新输入！")